package ycl.security.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import ycl.common.result.Result;
import ycl.common.constants.SecurityConstant;
import ycl.security.service.LoginService;

import javax.annotation.Resource;

/**
 * 退出登录
 *
 * @author ycl
 * @date 2022/6/16 0016 10:17:19
 */
@Slf4j
@RestController
@RequestMapping(value = "/logout", produces = SecurityConstant.CONTENT_TYPE)
@Api(tags = {"退出登录流程接口"})
public class LogoutController {

	@Resource
	private LoginService loginService;


	@PostMapping(value = "/logout")
	@ApiOperation("(伪接口)登出接口")
	@ApiOperationSupport(order = 2)
	public Result<String> logout() {
		return Result.badRequest(null);
	}

}
